`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    22:27:03 03/23/2014 
// Design Name: 
// Module Name:    sprite_display 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module sprite_display(red, green, blue, hcounter, vcounter, blank, pclk);

	input blank, pclk;
	input [10:0] hcounter, vcounter;
	output reg [2:0] red, green;
	output reg [1:0] blue;
	
	//sprite arrays
	
	reg [15:0] sprite_S [0:15];
	reg [15:0] sprite_C [0:15];
	reg [15:0] sprite_O [0:15];
	reg [15:0] sprite_R [0:15];
	reg [15:0] sprite_E [0:15];
	reg [15:0] sprite_colon [0:15];
	reg [15:0] sprite_0 [0:15];
	reg [63:0] arrow_0 [0:63];
	reg [63:0] arrow_1 [0:63];
	reg [63:0] arrow_2 [0:63];
	reg [63:0] arrow_3 [0:63];
	reg [63:0] arrow_A [0:99];
	reg [63:0] arrow_B [0:45];

	reg [15:0] digit_0 [0:15];
	reg [15:0] digit_1 [0:15];
	reg [15:0] digit_2 [0:15];

   reg [79:0] blood_A [0:15];
	reg [79:0] blood_B [0:15];
	reg [79:0] blood_C [0:15];
	reg [79:0] blood_D [0:15];
	
	//sprite rows
	reg [15:0] letter1_row, letter2_row, letter3_row, letter4_row, letter5_row, letter6_row;	
	reg [15:0] digit_0_row, digit_1_row, digit_2_row; 
	reg [63:0] arrow_0_row,arrow_1_row,arrow_2_row,arrow_3_row,arrow_A_row,arrow_B_row;
	reg [79:0] blood_A_row,blood_B_row,blood_C_row,blood_D_row;
	
	//image on signal
	reg letter1_on, letter2_on, letter3_on, letter4_on, letter5_on, letter6_on;	
	reg digit_0_on, digit_1_on, digit_2_on, line_on;
	reg arrow_0_on,arrow_1_on,arrow_2_on,arrow_3_on,arrow_A_on,arrow_B_on;
	reg blood_A_on,blood_B_on,blood_C_on,blood_D_on;
	
	//clk divider reg
	reg [24:0] div = 0;
	
	always @ (posedge (pclk)) begin
	
		sprite_S[ 0] <= 16'b0000000000000000; 
		sprite_S[ 1] <= 16'b0000011111100000;
		sprite_S[ 2] <= 16'b0000011111100000; 
		sprite_S[ 3] <= 16'b0001100000011000; 
		sprite_S[ 4] <= 16'b0001100000011000; 
		sprite_S[ 5] <= 16'b0001100000000000; 
		sprite_S[ 6] <= 16'b0001100000000000; 
		sprite_S[ 7] <= 16'b0000011111100000; 
		sprite_S[ 8] <= 16'b0000011111100000; 
		sprite_S[ 9] <= 16'b0000000000011000; 
		sprite_S[10] <= 16'b0000000000011000; 
		sprite_S[11] <= 16'b0001100000011000; 
		sprite_S[12] <= 16'b0001100000011000;
		sprite_S[13] <= 16'b0000011111100000;
		sprite_S[14] <= 16'b0000011111100000;
		sprite_S[15] <= 16'b0000000000000000;//S
		
		sprite_C[ 0] <= 16'b0000000000000000; 
		sprite_C[ 1] <= 16'b0000011111100000; 
		sprite_C[ 2] <= 16'b0000011111100000; 
		sprite_C[ 3] <= 16'b0001100000011000; 
		sprite_C[ 4] <= 16'b0001100000011000; 
		sprite_C[ 5] <= 16'b0001100000000000; 
		sprite_C[ 6] <= 16'b0001100000000000; 
		sprite_C[ 7] <= 16'b0001100000000000; 
		sprite_C[ 8] <= 16'b0001100000000000; 
		sprite_C[ 9] <= 16'b0001100000000000; 
		sprite_C[10] <= 16'b0001100000000000; 
		sprite_C[11] <= 16'b0001100000011000; 
		sprite_C[12] <= 16'b0001100000011000; 
		sprite_C[13] <= 16'b0000011111100000; 
		sprite_C[14] <= 16'b0000011111100000; 
		sprite_C[15] <= 16'b0000000000000000; //C
			
		sprite_O[ 0] <= 16'b0000000000000000; 
		sprite_O[ 1] <= 16'b0000011111100000; 
		sprite_O[ 2] <= 16'b0000011111100000; 
		sprite_O[ 3] <= 16'b0001100000011000; 
		sprite_O[ 4] <= 16'b0001100000011000; 
		sprite_O[ 5] <= 16'b0001100000011000; 
		sprite_O[ 6] <= 16'b0001100000011000; 
		sprite_O[ 7] <= 16'b0001100000011000; 
		sprite_O[ 8] <= 16'b0001100000011000;
		sprite_O[ 9] <= 16'b0001100000011000; 
		sprite_O[10] <= 16'b0001100000011000; 
		sprite_O[11] <= 16'b0001100000011000; 
		sprite_O[12] <= 16'b0001100000011000; 
		sprite_O[13] <= 16'b0000011111100000;
		sprite_O[14] <= 16'b0000011111100000;
		sprite_O[15] <= 16'b0000000000000000;//O

		sprite_R[ 0] <= 16'b0000000000000000; 
		sprite_R[ 1] <= 16'b0001111111100000; 
		sprite_R[ 2] <= 16'b0001111111100000; 
		sprite_R[ 3] <= 16'b0001100000011000; 
		sprite_R[ 4] <= 16'b0001100000011000; 
		sprite_R[ 5] <= 16'b0001100000011000; 
		sprite_R[ 6] <= 16'b0001100000011000; 
		sprite_R[ 7] <= 16'b0001111111100000; 
		sprite_R[ 8] <= 16'b0001111111100000; 
		sprite_R[ 9] <= 16'b0001100110000000; 
		sprite_R[10] <= 16'b0001100110000000; 
		sprite_R[11] <= 16'b0001100001100000; 
		sprite_R[12] <= 16'b0001100001100000; 
		sprite_R[13] <= 16'b0001100000011000; 
		sprite_R[14] <= 16'b0001100000011000; 
		sprite_R[15] <= 16'b0000000000000000;//R


		sprite_E[ 0] <= 16'b0000000000000000; 
		sprite_E[ 1] <= 16'b0001111111111000; 
		sprite_E[ 2] <= 16'b0001111111111000; 
		sprite_E[ 3] <= 16'b0001100000000000; 
		sprite_E[ 4] <= 16'b0001100000000000; 
		sprite_E[ 5] <= 16'b0001100000000000; 
		sprite_E[ 6] <= 16'b0001100000000000; 
		sprite_E[ 7] <= 16'b0001111111100000; 
		sprite_E[ 8] <= 16'b0001111111100000; 
		sprite_E[ 9] <= 16'b0001100000000000; 
		sprite_E[10] <= 16'b0001100000000000; 
		sprite_E[11] <= 16'b0001100000000000; 
		sprite_E[12] <= 16'b0001100000000000; 
		sprite_E[13] <= 16'b0001111111111000; 
		sprite_E[14] <= 16'b0001111111111000; 
		sprite_E[15] <= 16'b0000000000000000; //E

		sprite_colon[ 0] <= 16'b0000000000000000;
		sprite_colon[ 1] <= 16'b0000000000000000;
		sprite_colon[ 2] <= 16'b0000000000000000;
		sprite_colon[ 3] <= 16'b0000000000000000;
		sprite_colon[ 4] <= 16'b0000000110000000;
		sprite_colon[ 5] <= 16'b0000000110000000;
		sprite_colon[ 6] <= 16'b0000000000000000;
		sprite_colon[ 7] <= 16'b0000000000000000;
		sprite_colon[ 8] <= 16'b0000000000000000;
		sprite_colon[ 9] <= 16'b0000000000000000;
		sprite_colon[10] <= 16'b0000000110000000;
		sprite_colon[11] <= 16'b0000000110000000;
		sprite_colon[12] <= 16'b0000000000000000;
		sprite_colon[13] <= 16'b0000000000000000;
		sprite_colon[14] <= 16'b0000000000000000;
		sprite_colon[15] <= 16'b0000000000000000;//:

		
		sprite_0[ 0] <= 16'b0000000000000000;
		sprite_0[ 1] <= 16'b0000011111100000;
		sprite_0[ 2] <= 16'b0000011111100000;
		sprite_0[ 3] <= 16'b0001100000011000;
		sprite_0[ 4] <= 16'b0001100000011000;
		sprite_0[ 5] <= 16'b0001100001111000;
		sprite_0[ 6] <= 16'b0001100001111000;
		sprite_0[ 7] <= 16'b0001100110011000;
		sprite_0[ 8] <= 16'b0001100110011000;
		sprite_0[ 9] <= 16'b0001111000011000;
		sprite_0[10] <= 16'b0001111000011000;
		sprite_0[11] <= 16'b0001100000011000;
		sprite_0[12] <= 16'b0001100000011000;
		sprite_0[13] <= 16'b0000011111100000;
		sprite_0[14] <= 16'b0000011111100000;
		sprite_0[15] <= 16'b0000000000000000;//0
		
		arrow_0[ 0] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;
		arrow_0[ 1] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 2] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 3] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 4] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 5] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 6] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 7] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 8] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[ 9] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[10] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[11] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[12] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[13] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[14] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[15] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[16] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[17] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[18] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[19] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[20] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_0[21] <= 64'b0111111100000000000000000000111111110000000000000000000011111110;
		arrow_0[22] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_0[23] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_0[24] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_0[25] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_0[26] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_0[27] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_0[28] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_0[29] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_0[30] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_0[31] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_0[32] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_0[33] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_0[34] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_0[35] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_0[36] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_0[37] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_0[38] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_0[39] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_0[40] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_0[41] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_0[42] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_0[43] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_0[44] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_0[45] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_0[46] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_0[47] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_0[48] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_0[49] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_0[50] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_0[51] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_0[52] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_0[53] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_0[54] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_0[55] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_0[56] <= 64'b0000000000000000001111111100111111110011111111000000000000000000;
		arrow_0[57] <= 64'b0000000000000000001111111110111111110111111111000000000000000000;
		arrow_0[58] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_0[59] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_0[60] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_0[61] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_0[62] <= 64'b0000000000000000000001111111111111111111111000000000000000000000;
		arrow_0[63] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;	
		
      arrow_A[ 0] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;
      arrow_A[ 1] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 2] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 3] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 4] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 5] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 6] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 7] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 8] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[ 9] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[10] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[11] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[12] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[13] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[14] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[15] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[16] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;		
      arrow_A[17] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[18] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[19] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[20] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[21] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[22] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[23] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[24] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[25] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[26] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[27] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[28] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[29] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[30] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[31] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[32] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[33] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[34] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[35] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[36] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;			
		arrow_A[37] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[38] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[39] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[40] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[41] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[42] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[43] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[44] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[45] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[46] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[47] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[48] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[49] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[50] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[51] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[52] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[53] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[54] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[55] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[56] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_A[57] <= 64'b0111111100000000000000000000111111110000000000000000000011111110;
		arrow_A[58] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_A[59] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_A[60] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_A[61] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_A[62] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_A[63] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_A[64] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_A[65] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_A[66] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_A[67] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_A[68] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_A[69] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_A[70] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_A[71] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_A[72] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_A[73] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_A[74] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_A[75] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_A[76] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_A[77] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_A[78] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_A[79] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_A[80] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_A[81] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_A[82] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_A[83] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_A[84] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_A[85] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_A[86] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_A[87] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_A[88] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_A[89] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_A[90] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_A[91] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_A[92] <= 64'b0000000000000000001111111100111111110011111111000000000000000000;
		arrow_A[93] <= 64'b0000000000000000001111111110111111110111111111000000000000000000;
		arrow_A[94] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_A[95] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_A[96] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_A[97] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_A[98] <= 64'b0000000000000000000001111111111111111111111000000000000000000000;
		arrow_A[99] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;	
		    
		arrow_B[ 0] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;
		arrow_B[ 1] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_B[ 2] <= 64'b0000000000000000000000000000111111110000000000000000000000000000;
		arrow_B[ 3] <= 64'b0111111100000000000000000000111111110000000000000000000011111110;
		arrow_B[ 4] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_B[ 5] <= 64'b0111111110000000000000000000111111110000000000000000000111111110;
		arrow_B[ 6] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_B[ 7] <= 64'b0011111111000000000000000000111111110000000000000000001111111100;
		arrow_B[ 8] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_B[ 9] <= 64'b0001111111100000000000000000111111110000000000000000011111111000;
		arrow_B[10] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_B[11] <= 64'b0000111111110000000000000000111111110000000000000000111111110000;
		arrow_B[12] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_B[13] <= 64'b0000011111111000000000000000111111110000000000000001111111100000;
		arrow_B[14] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_B[15] <= 64'b0000001111111100000000000000111111110000000000000011111111000000;
		arrow_B[16] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_B[17] <= 64'b0000000111111110000000000000111111110000000000000111111110000000;
		arrow_B[18] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_B[19] <= 64'b0000000011111111000000000000111111110000000000001111111100000000;
		arrow_B[20] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_B[21] <= 64'b0000000001111111100000000000111111110000000000011111111000000000;
		arrow_B[22] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_B[23] <= 64'b0000000000111111110000000000111111110000000000111111110000000000;
		arrow_B[24] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_B[25] <= 64'b0000000000011111111000000000111111110000000001111111100000000000;
		arrow_B[26] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_B[27] <= 64'b0000000000001111111100000000111111110000000011111111000000000000;
		arrow_B[28] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_B[29] <= 64'b0000000000000111111110000000111111110000000111111110000000000000;
		arrow_B[30] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_B[31] <= 64'b0000000000000011111111000000111111110000001111111100000000000000;
		arrow_B[32] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_B[33] <= 64'b0000000000000001111111100000111111110000011111111000000000000000;
		arrow_B[34] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_B[35] <= 64'b0000000000000000111111110000111111110000111111110000000000000000;
		arrow_B[36] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_B[37] <= 64'b0000000000000000011111111000111111110001111111100000000000000000;
		arrow_B[38] <= 64'b0000000000000000001111111100111111110011111111000000000000000000;
		arrow_B[39] <= 64'b0000000000000000001111111110111111110111111111000000000000000000;
		arrow_B[40] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_B[41] <= 64'b0000000000000000000111111111111111111111111110000000000000000000;
		arrow_B[42] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_B[43] <= 64'b0000000000000000000011111111111111111111111100000000000000000000;
		arrow_B[44] <= 64'b0000000000000000000001111111111111111111111000000000000000000000;
		arrow_B[45] <= 64'b0000000000000000000000000000000000000000000000000000000000000000;		
			
		blood_A[ 0] <= 79'b0000000000000000000000000000000000000000000000000000000000000000000000000000000;
		blood_A[ 1] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 2] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 3] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 4] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 5] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 6] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 7] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 8] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[ 9] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[10] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[11] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[12] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[13] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[14] <= 79'b0111111111111111111111111111111111111111111111111111111111111111111111111111110;
		blood_A[15] <= 79'b0000000000000000000000000000000000000000000000000000000000000000000000000000000;
	
	
		end
		
	always @ (posedge (pclk)) begin
		if (!blank) begin
				div <= div + 1;
			
				//letter1: S
				if (((hcounter >= 10) && (hcounter <= 10+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter1_row <= sprite_S[vcounter - 10];
					if (letter1_row[10+15-hcounter])
						letter1_on <= 1;
					else
						letter1_on <= 0;
				end
				//letter2: C
				if (((hcounter >= 30) && (hcounter <= 30+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter2_row <= sprite_C[vcounter - 10];
					if (letter2_row[30+15-hcounter])
						letter2_on <= 1;
					else
						letter2_on <= 0;
				end
				//letter3: O
				if (((hcounter >= 50) && (hcounter <= 50+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter3_row <= sprite_O[vcounter - 10];
					if (letter3_row[50+15-hcounter])
						letter3_on <= 1;
					else
						letter3_on <= 0;
				end
				//letter4: R
				if (((hcounter >= 70) && (hcounter <= 70+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter4_row <= sprite_R[vcounter - 10];
					if (letter4_row[70+15-hcounter])
						letter4_on <= 1;
					else
						letter4_on <= 0;
				end
				//letter5: E
				if (((hcounter >= 90) && (hcounter <= 90+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter5_row <= sprite_E[vcounter - 10];
					if (letter5_row[90+15-hcounter])
						letter5_on <= 1;
					else
						letter5_on <= 0;
				end
				//letter6: :
				if (((hcounter >= 110) && (hcounter <= 110+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					letter6_row <= sprite_colon[vcounter - 10];
					if (letter6_row[110+15-hcounter])
						letter6_on <= 1;
					else
						letter6_on <= 0;
				end
				
				//digit 0
				if (((hcounter >= 130) && (hcounter <= 130+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					digit_0_row <= sprite_0[vcounter - 10];
					if (digit_0_row[130+15-hcounter])
						digit_0_on <= 1;
					else
						digit_0_on <= 0;
				end
				//digit 1
				else if (((hcounter >= 150) && (hcounter <= 150+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					digit_1_row <= sprite_0[vcounter - 10];
					if (digit_1_row[150+15-hcounter])
						digit_1_on <= 1;
					else
						digit_1_on <= 0;
				end
				//digit 2
				else if (((hcounter >= 170) && (hcounter <= 170+15)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					digit_2_row <= sprite_0[vcounter - 10];
					if (digit_2_row[170+15-hcounter])
						digit_2_on <= 1;
					else
						digit_2_on <= 0;
				end
				
            //arrow_0
				else if (((hcounter >= 51) && (hcounter <= 51+63)) && ((vcounter >= 400) && (vcounter <= 400+63)))begin
					arrow_0_row <= arrow_0[vcounter - 400];
					if (arrow_0_row[51+63-hcounter])
						arrow_0_on <= 1;
					else
						arrow_0_on <= 0;
				end			
				 //arrow_1
				else if (((hcounter >= 194) && (hcounter <= 194+63)) && ((vcounter >= 400) && (vcounter <= 400+63)))begin
					arrow_1_row <= arrow_0[vcounter - 400];
					if (arrow_1_row[194+63-hcounter])
						arrow_1_on <= 1;
					else
						arrow_1_on <= 0;
				end	
				 //arrow_2
				else if (((hcounter >= 337) && (hcounter <= 337+63)) && ((vcounter >= 400) && (vcounter <= 400+63)))begin
					arrow_2_row <= arrow_0[vcounter - 400];
					if (arrow_2_row[337+63-hcounter])
						arrow_2_on <= 1;
					else
						arrow_2_on <= 0;
				end	
				
			   //arrow_3
				else if (((hcounter >= 480) && (hcounter <= 480+63)) && ((vcounter >= 400) && (vcounter <= 400+63)))begin
					arrow_3_row <= arrow_0[vcounter - 400];
					if (arrow_3_row[480+63-hcounter])
						arrow_3_on <= 1;
					else
						arrow_3_on <= 0;
				end	
				
			   //arrow_A
				else if (((hcounter >= 194) && (hcounter <= 194+63)) && ((vcounter >= 200) && (vcounter <= 200+99)))begin
					arrow_A_row <= arrow_A[vcounter - 200];
					if (arrow_A_row[194+63-hcounter])
						arrow_A_on <= 1;
					else
						arrow_A_on <= 0;
				end	
			  
			   //arrow_B
				else if (((hcounter >= 337) && (hcounter <= 337+63)) && ((vcounter >= 300) && (vcounter <= 300+45)))begin
					arrow_B_row <= arrow_B[vcounter - 300];
					if (arrow_B_row[337+63-hcounter])
						arrow_B_on <= 1;
					else
						arrow_B_on <= 0;
				end	
			  		  
			  //blood_A
				else if (((hcounter >= 280) && (hcounter <= 280+79)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					blood_A_row <= blood_A[vcounter - 10];
					if (blood_A_row[280+79-hcounter])
						blood_A_on <= 1;
					else
						blood_A_on <= 0;
				end
			  //blood_B
				else if (((hcounter >= 359) && (hcounter <= 359+79)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					blood_B_row <= blood_A[vcounter - 10];
					if (blood_B_row[359+79-hcounter])
						blood_B_on <= 1;
					else
						blood_B_on <= 0;
				end			
			 //blood_C
				else if (((hcounter >= 438) && (hcounter <= 438+79)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					blood_C_row <= blood_A[vcounter - 10];
					if (blood_C_row[438+79-hcounter])
						blood_C_on <= 1;
					else
						blood_C_on <= 0;
				end
          //blood_D
				else if (((hcounter >= 517) && (hcounter <= 517+79)) && ((vcounter >= 10) && (vcounter <= 10+15)))begin
					blood_D_row <= blood_A[vcounter - 10];
					if (blood_D_row[517+79-hcounter])
						blood_D_on <= 1;
					else
						blood_D_on <= 0;
				end
		
		end
	end
	
	always @ (posedge (pclk)) begin
		if (letter1_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b11;
		end
		else if (letter2_on) begin
			red <= 3'b101;
			green <= 3'b111;
			blue <= 2'b11;
		end
		else if (letter3_on) begin
			red <= 3'b111;
			green <= 3'b101;
			blue <= 2'b11;
		end
		else if (letter4_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b10;
		end
		else if (letter5_on) begin
			red <= 3'b110;
			green <= 3'b111;
			blue <= 2'b10;
		end
		else if (letter6_on) begin
			red <= 3'b101;
			green <= 3'b011;
			blue <= 2'b11;
		end
		
		else if (digit_0_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b11;
		end
		else if (digit_1_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b11;
		end
		else if (digit_2_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b11;
		end
		else if (arrow_0_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b10;
		end
		else if (arrow_1_on) begin
			red <= 3'b101;
			green <= 3'b111;
			blue <= 2'b01;
		end
		else if (arrow_2_on) begin
			red <= 3'b011;
			green <= 3'b110;
			blue <= 2'b11;
		end
		else if (arrow_3_on) begin
			red <= 3'b100;
			green <= 3'b100;
			blue <= 2'b11;
		end
		else if (arrow_A_on) begin
			red <= 3'b011;
			green <= 3'b110;
			blue <= 2'b11;
		end
		else if (arrow_B_on) begin
			red <= 3'b100;
			green <= 3'b100;
			blue <= 2'b11;
		end
		else if (blood_A_on) begin
			red <= 3'b111;
			green <= 3'b000;
			blue <= 2'b00;
		end
		else if (blood_B_on) begin
			red <= 3'b111;
			green <= 3'b101;
			blue <= 2'b11;
		end
		else if (blood_C_on) begin
			red <= 3'b111;
			green <= 3'b110;
			blue <= 2'b11;
		end
		else if (blood_D_on) begin
			red <= 3'b111;
			green <= 3'b111;
			blue <= 2'b11;
		end
	else begin
			red <= 3'b000;
			green <= 3'b000;
			blue <= 2'b00;
		end
	end

endmodule
